Crate bitpacking[−][src]
Fast Bitpacking algorithms
This crate is a Rust port of Daniel Lemire’s simdcomp C library.
It contains different flavor of integers compression via bitpacking : BitPacker1x, BitPacker4x, and BitPacker8x.
Each produces different formats, and are incompatible one with another, and requires integers to be encoded in block of different size..
BitPacker4x and BitPacker8x are designed specifically to leverage SSE3
and AVX2 instructions respectively.
The library will fallback to a scalar implementation if these instruction sets are not available. For instance :
- because your compilation target architecture is not
x86_64 - because the CPU you use is from an older generation
I recommend using BitPacker4x if you are in doubt.
See the BitPacker trait for example usage.
Structs
| BitPacker1x |
|
| BitPacker4x |
|
| BitPacker8x |
|
Traits
| BitPacker | Examples without delta-encoding |